﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace University.Models
{
    public class Faculty
    {
        public int FacultyId { get; set; }

        [Required(ErrorMessage = "Please provide faculty name")]
        [Display(Name = "Faculty Name")]
        public string Name { get; set; }

        [Required(ErrorMessage = "Please provide dean name")]
        [Display(Name = "Dean Name")]
        public string DeanName { get; set; }

        [Required(ErrorMessage = "Please provide address")]
        [Display(Name = "Address")]
        public string Address { get; set; }

        [Required(ErrorMessage = "Please provide description")]
        [Display(Name = "Description:")]
        public string Description { get; set; }


        public virtual ICollection<Department> Departments { get; set; }

    }
}